from base import session, User




ed_user = session.query(User).filter_by(name='ed').first()
ed_user.name = 'Edwardo'
fake_user = User(name='fakeuser', fullname='Invalid', password='12345')
session.add(fake_user)
session.query(User).filter(User.name.in_(['Edwardo', 'fakeuser'])).all()
session.rollback()
print(ed_user.name)
print(fake_user in session)
print(session.query(User).filter(User.name.in_(['ed', 'fakeuser'])).all())
